package com.hkts.naturalgas.utils;

import java.time.LocalDateTime;
import java.time.ZoneOffset;

/**
 * @ClassNameTestRandom
 * @Description
 * @Author yck
 * @Date2021-06-04 15:14
 * @Version V1.0
 **/
public class TestRandom {
    public static void main(String[] args) {
        test();
    }
    public static void test() {
        LocalDateTime now = LocalDateTime.now();
        LocalDateTime localDateTime = now.plusMinutes(5);
        System.out.println((localDateTime.toInstant(ZoneOffset.of("+8")).toEpochMilli()-LocalDateTime.now().toInstant(ZoneOffset.of("+8")).toEpochMilli())/1000);

        long i=55;
        long b=100;
        float c=(float) i/(float) b;
        System.out.println(c);
    }
}
